<!-- Title Variables -->
<% phc_title "PHCMembers - Member Listings Manager" %>
<% phc_title_tagline "Complete Directory Listing Index" %>

<!-- Page Header -->
<div class="row">
	<div class="col-lg-12">

		<!-- Bread Crumbs -->
		<ol class="breadcrumb">
			<li><%= link_to "Dashboard", directory_root_path %></li>
			<li class="active"><%= yield(:phc_title_tagline) %></li>
		</ol>

		<!-- Page Title -->
		<h3 class="page-title">
			<%= yield(:phc_title) %> </br>
			<small><%= yield(:phc_title_tagline) %></small>
		</h3>

	</div>
</div>

<!-- Main Content -->
<div class="row">
	<div class="col-lg-12">

		<div class="panel panel-default">
			<div class="panel-heading">

				<div class="caption">
					<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
				</div>

			</div>
			<div class="panel-body">

				<div class="table-scrollable">
					<table class="table table-striped table-bordered table-advance table-hover">
	
						<thead>
							<tr>
								<th>Category</th>
								<th>Company Name</th>
							</tr>
						</thead>

						<tbody>
							<% @directory_categorylistings.each do |directory_categorylisting| %>
								<tr>
									<td><%= directory_categorylisting.category.catname %></td>
									<td><%= directory_categorylisting.listing.mbcompanyname %></td>
								</tr>
							<% end %>
						</tbody>

					</table>
				</div>
			</div>
		</div>

	</div>
</div>
